Add a reftest for GtkActionBar child ordering
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2014 00:05:40 +0000 (19:05 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2014 00:05:40 +0000 (19:05 -0500)
This shows that GtkActionBar and GtkBox treat pack-start/-end
the same.

testsuite/reftests/Makefile.am
testsuite/reftests/actionbar.ref.ui [new file with mode: 0644]
testsuite/reftests/actionbar.ui [new file with mode: 0644]

index 30c471de0eb2c13c57172d7b2e39a5ee739242d2..d62f066256b2e7e628a7a03a12cc4ab9e9d7c319 100644 (file)
@@ -31,6 +31,8 @@ EXTRA_DIST += \
        $(NULL)
 
 testdata = \
+       actionbar.ref.ui \
+       actionbar.ui \
        alignment-props.css \
        alignment-props.ref.ui \
        alignment-props.ui \
diff --git a/testsuite/reftests/actionbar.ref.ui b/testsuite/reftests/actionbar.ref.ui
new file mode 100644 (file)
index 0000000..35de854
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">Center</property>
+          </object>         
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/actionbar.ui b/testsuite/reftests/actionbar.ui
new file mode 100644 (file)
index 0000000..28a7729
--- /dev/null
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkActionBar">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="spacing">0</property>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child type="center">
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">Center</property>
+          </object>         
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>